﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FileDistributor.Configuration;

namespace FileDistributor.Monitoring
{
    public static class PickupLocationMonitorHelper
    {
        private static readonly FileDistributorSection _configSection = ConfigurationHelper.GetDistributorSection();

        public static void StartMonitoringPickupLocations()
        {
            foreach (PickupLocationElement pickupLocation in _configSection.PickupLocations)
            {
                new PickupLocationMonitor(pickupLocation);
            }
        }
    }
}
